import { formatTime } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  { title: t('other.qualityInspectionTime'), dataIndex: 'qcTime', key: 'qcTime', align: 'center', width: 120 , sorter: true,resizable: true , timeType: 'day',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  },
  { title: t('other.qualityInspectionStationNumber'), dataIndex: 'checkLineStationNo', key: 'checkLineStationNo', align: 'center', width: 120, resizable: true },
  { title: t('other.qualityInspector'), dataIndex: 'checkStaffNoName', key: 'checkStaffNoName', align: 'center', width: 120, resizable: true },
  { title: t('other.qualityInspectionProcess'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120, resizable: true },
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120,resizable: true  },
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120,resizable: true},
  { title: t('other.reworkStationNumber'), dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 120 , resizable: true },
  { title: t('other.reworkingEmployee'), dataIndex: 'workStaffNoName', key: 'workStaffNoName', align: 'center', width: 120  , resizable: true },
  { title: t('other.reworkProcessNumber'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 120  , resizable: true },
  { title: t('other.nameOfTheReworkProcess'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120  , resizable: true },
  { title: t('other.defectCause'), dataIndex: 'defectName', key: 'defectName', align: 'center', width: 120  , resizable: true },
  { title: t('hangManage.returnNumber'), dataIndex: 'reworkQty', key: 'reworkQty', align: 'center', width: 120  , resizable: true },
  { title: t('other.reworkCondition'), dataIndex: 'reworkStatus', key: 'reworkStatus', align: 'center', width: 120  , resizable: true },
]